import App from './App'

import sunui from './utils/sun.js';
import Api from './api.js';
// import Api from './api.js';
import Http from './utils/http.js';
import antiThrottling from '@/utils/antiThrottling.js';
import jweixin from './utils/jweixin.js';
import Mixin from '@/components/mescroll-uni/mescroll-mixins.js';
import MescrollBody from '@/components/mescroll-uni/mescroll-body.vue';
import MescrollUni from '@/components/mescroll-uni/mescroll-uni.vue';
import MescrollEmpty from '@/components/mescroll-uni/components/mescroll-empty.vue';



// import XLSX from 'xlsx';



Vue.mixin(Mixin);
Vue.component('mescroll-uni', MescrollUni);
Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-empty', MescrollEmpty);


// Vue.prototype.$xlsx = XLSX;
Vue.prototype.$http = Http;
Vue.prototype.$api = Api;
Vue.prototype.$sun = sunui;
Vue.prototype.$at = antiThrottling;
Vue.prototype.$wx = jweixin;
Vue.config.ignoredElements.push('wx-open-launch-weapp')



// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif